package com.ddtech.utils;

import org.hibernate.dialect.Oracle10gDialect;
import org.hibernate.type.StandardBasicTypes;

import java.sql.Types;

public class MyOracle10gDialect extends Oracle10gDialect {
    public MyOracle10gDialect() {
        super();                
    registerHibernateType(Types.CHAR, StandardBasicTypes.STRING.getName());
    registerHibernateType(Types.NVARCHAR, StandardBasicTypes.STRING.getName());
    registerHibernateType(Types.LONGNVARCHAR, StandardBasicTypes.STRING.getName());
    registerHibernateType(Types.DECIMAL, StandardBasicTypes.DOUBLE.getName());
    registerHibernateType(Types.NCLOB, StandardBasicTypes.STRING.getName());
    registerHibernateType(Types.CLOB, StandardBasicTypes.STRING.getName());
    }
} 